﻿namespace HRM.CORE.REPORT
{
    using APP.HELPER.Utils.Language;
    using APP.HELPER.Utils.Security;
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using Dictionary.ERP;
    using HRM.CORE;
    using HRM.CORE.CLASS;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptListDecreaseEmployee : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private XRTableCell colBirthPlace;
        private XRTableCell colEmployeeCode;
        private XRTableCell colEndDate;
        private XRTableCell colLastName;
        private XRTableCell colMainAddress;
        private XRTableCell colOrder;
        private XRTableCell colPosition;
        private XRTableCell colSex;
        private IContainer components;
        private DetailBand Detail;
        private XRTableCell dtBirthdayFemale;
        private XRTableCell dtBirthdayMale;
        private XRLabel dtDate;
        private XRTableCell dtEndDate;
        private GroupHeaderBand GroupHeader1;
        private HRM_EMPLOYEE l_Employee;
        private XRLabel lblTotalEmployee;
        private XRLabel lblTotalEmployeeFemale;
        private XRLabel lblTotalEmpProvince;
        private XRLabel lblTotalEmpProvinceFemale;
        private string m_Code;
        private int m_Level;
        private int m_Month;
        private int m_Order;
        private int m_Status;
        private int m_Year;
        private XRPictureBox ptPhoto;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRLabel txtAddress;
        private XRTableCell txtBirthPlace;
        private XRLabel txtCompany;
        private XRTableCell txtEmployeeAddress;
        private XRTableCell txtEmployeeCode;
        private XRTableCell txtFirstName;
        private XRTableCell txtHCMCity;
        private XRTableCell txtOrder;
        private XRTableCell txtOrtherCity;
        private XRTableCell txtReasonLeaveBefore;
        private XRTableCell txtReasonLeaveDiscip;
        private XRTableCell txtReasonLeaveJobLos;
        private XRTableCell txtReasonLeaveLimit;
        private XRTableCell txtReasonLeaveOrther;
        private XRTableCell txtReasonLeaveRetire;
        private XRTableCell txtReasonLeaveVolun;
        private XRLabel txtTitle;
        private XRLabel txtUnit;
        private XRLabel xrLabel1;
        private XRLabel xrLabel10;
        private XRLabel xrLabel11;
        private XRLabel xrLabel12;
        private XRLabel xrLabel13;
        private XRLabel xrLabel14;
        private XRLabel xrLabel15;
        private XRLabel xrLabel16;
        private XRLabel xrLabel17;
        private XRLabel xrLabel18;
        private XRLabel xrLabel19;
        private XRLabel xrLabel2;
        private XRLabel xrLabel20;
        private XRLabel xrLabel21;
        private XRLabel xrLabel22;
        private XRLabel xrLabel23;
        private XRLabel xrLabel24;
        private XRLabel xrLabel25;
        private XRLabel xrLabel26;
        private XRLabel xrLabel27;
        private XRLabel xrLabel28;
        private XRLabel xrLabel29;
        private XRLabel xrLabel3;
        private XRLabel xrLabel30;
        private XRLabel xrLabel31;
        private XRLabel xrLabel4;
        private XRLabel xrLabel5;
        private XRLabel xrLabel6;
        private XRLabel xrLabel7;
        private XRLabel xrLabel8;
        private XRLabel xrLabel9;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell10;
        private XRTableCell xrTableCell11;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell5;
        private XRTableCell xrTableCell6;
        private XRTableCell xrTableCell7;
        private XRTableCell xrTableCell8;
        private XRTableCell xrTableCell9;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow3;

        public rptListDecreaseEmployee()
        {
            this.components = null;
            this.l_Employee = new HRM_EMPLOYEE();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Status = 0;
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Order = 0;
            this.InitializeComponent();
            this.InitMultiLanguages();
        }

        public rptListDecreaseEmployee(int Level, string Code, int Status, int Month, int Year)
        {
            this.components = null;
            this.l_Employee = new HRM_EMPLOYEE();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Status = 0;
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Order = 0;
            this.InitializeComponent();
            this.InitMultiLanguages();
            this.m_Level = Level;
            this.m_Code = Code;
            this.m_Status = Status;
            this.m_Month = Month;
            this.m_Year = Year;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void dtBirthdayMale_BeforePrint(object sender, PrintEventArgs e)
        {
            try
            {
                string text = this.txtEmployeeCode.Text;
                HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
                hrm_employee.Get(text);
                string str2 = hrm_employee.BirthdayYear.ToString();
                if (hrm_employee.Sex)
                {
                    this.dtBirthdayMale.Text = str2;
                    this.dtBirthdayFemale.Text = "";
                }
                else
                {
                    this.dtBirthdayMale.Text = "";
                    this.dtBirthdayFemale.Text = str2;
                }
                DataTable table = hrm_employee.GetListCurrentNow(0, "", 1);
                this.lblTotalEmployee.Text = "+  Tổng số lao động hiện c\x00f3:  " + table.Rows.Count.ToString() + "  người";
                int num = 0;
                int num2 = 0;
                foreach (DataRow row in table.Rows)
                {
                    if (row["Sex"].ToString().ToLower() == "false")
                    {
                        num++;
                        if (!this.IsHCM(row["MainAddress"].ToString()))
                        {
                            num2++;
                        }
                    }
                }
                this.lblTotalEmployeeFemale.Text = "     Trong đ\x00f3 nữ:  " + num.ToString() + "  người";
                int num3 = 0;
                foreach (DataRow row in table.Rows)
                {
                    if (!this.IsHCM(row["MainAddress"].ToString()))
                    {
                        num3++;
                    }
                }
                this.lblTotalEmpProvince.Text = "+  Lao động c\x00f3 hộ khẩu tỉnh: " + num3.ToString() + "  người";
                this.lblTotalEmpProvinceFemale.Text = "     Trong đ\x00f3 nữ:  " + num2.ToString() + "  người";
            }
            catch
            {
            }
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.txtEmployeeCode = new XRTableCell();
            this.txtFirstName = new XRTableCell();
            this.dtBirthdayMale = new XRTableCell();
            this.dtBirthdayFemale = new XRTableCell();
            this.txtHCMCity = new XRTableCell();
            this.txtOrtherCity = new XRTableCell();
            this.txtBirthPlace = new XRTableCell();
            this.xrTableCell3 = new XRTableCell();
            this.txtEmployeeAddress = new XRTableCell();
            this.txtReasonLeaveOrther = new XRTableCell();
            this.dtEndDate = new XRTableCell();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.dtDate = new XRLabel();
            this.txtTitle = new XRLabel();
            this.txtUnit = new XRLabel();
            this.txtAddress = new XRLabel();
            this.ptPhoto = new XRPictureBox();
            this.txtCompany = new XRLabel();
            this.xrLabel2 = new XRLabel();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.colOrder = new XRTableCell();
            this.colEmployeeCode = new XRTableCell();
            this.colLastName = new XRTableCell();
            this.xrLabel1 = new XRLabel();
            this.xrLabel4 = new XRLabel();
            this.xrLabel3 = new XRLabel();
            this.colSex = new XRTableCell();
            this.xrLabel7 = new XRLabel();
            this.xrLabel6 = new XRLabel();
            this.xrLabel5 = new XRLabel();
            this.colBirthPlace = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.colMainAddress = new XRTableCell();
            this.colPosition = new XRTableCell();
            this.xrLabel8 = new XRLabel();
            this.colEndDate = new XRTableCell();
            this.ReportFooter = new ReportFooterBand();
            this.lblTotalEmpProvince = new XRLabel();
            this.lblTotalEmployeeFemale = new XRLabel();
            this.xrLabel16 = new XRLabel();
            this.lblTotalEmpProvinceFemale = new XRLabel();
            this.lblTotalEmployee = new XRLabel();
            this.xrLabel14 = new XRLabel();
            this.xrLabel15 = new XRLabel();
            this.xrLabel12 = new XRLabel();
            this.xrLabel13 = new XRLabel();
            this.xrLabel9 = new XRLabel();
            this.xrLabel10 = new XRLabel();
            this.xrLabel11 = new XRLabel();
            this.xrLabel17 = new XRLabel();
            this.xrLabel18 = new XRLabel();
            this.xrLabel19 = new XRLabel();
            this.xrLabel20 = new XRLabel();
            this.txtReasonLeaveLimit = new XRTableCell();
            this.txtReasonLeaveRetire = new XRTableCell();
            this.txtReasonLeaveJobLos = new XRTableCell();
            this.txtReasonLeaveBefore = new XRTableCell();
            this.txtReasonLeaveVolun = new XRTableCell();
            this.txtReasonLeaveDiscip = new XRTableCell();
            this.xrTableRow3 = new XRTableRow();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableCell5 = new XRTableCell();
            this.xrTableCell6 = new XRTableCell();
            this.xrTableCell7 = new XRTableCell();
            this.xrTableCell8 = new XRTableCell();
            this.xrTableCell9 = new XRTableCell();
            this.xrTableCell10 = new XRTableCell();
            this.xrTableCell11 = new XRTableCell();
            this.xrLabel21 = new XRLabel();
            this.xrLabel22 = new XRLabel();
            this.xrLabel23 = new XRLabel();
            this.xrLabel24 = new XRLabel();
            this.xrLabel25 = new XRLabel();
            this.xrLabel26 = new XRLabel();
            this.xrLabel27 = new XRLabel();
            this.xrLabel28 = new XRLabel();
            this.xrLabel29 = new XRLabel();
            this.xrLabel30 = new XRLabel();
            this.xrLabel31 = new XRLabel();
            this.xrTable2.BeginInit();
            this.xrTable1.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.xrTable2 });
            this.Detail.HeightF = 29.16667f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrTable2.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable2.LocationFloat = new PointFloat(0f, 0f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(1073.999f, 29.16667f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { 
                this.txtOrder, this.txtEmployeeCode, this.txtFirstName, this.dtBirthdayMale, this.dtBirthdayFemale, this.txtHCMCity, this.txtOrtherCity, this.txtBirthPlace, this.xrTableCell3, this.txtEmployeeAddress, this.txtReasonLeaveRetire, this.txtReasonLeaveLimit, this.txtReasonLeaveBefore, this.txtReasonLeaveJobLos, this.txtReasonLeaveVolun, this.txtReasonLeaveDiscip, 
                this.txtReasonLeaveOrther, this.dtEndDate
             });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtOrder.StylePriority.UsePadding = false;
            this.txtOrder.StylePriority.UseTextAlignment = false;
            this.txtOrder.Text = "txtOrder";
            this.txtOrder.TextAlignment = TextAlignment.MiddleLeft;
            this.txtOrder.Weight = 0.18749981602642024;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.txtEmployeeCode.Borders = BorderSide.Bottom | BorderSide.Left;
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtEmployeeCode.StylePriority.UseBorders = false;
            this.txtEmployeeCode.StylePriority.UsePadding = false;
            this.txtEmployeeCode.StylePriority.UseTextAlignment = false;
            this.txtEmployeeCode.Text = "[EmployeeCode]";
            this.txtEmployeeCode.TextAlignment = TextAlignment.MiddleLeft;
            this.txtEmployeeCode.Weight = 0.010666670930378597;
            this.txtFirstName.Borders = BorderSide.Bottom | BorderSide.Right;
            this.txtFirstName.Name = "txtFirstName";
            this.txtFirstName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtFirstName.StylePriority.UseBorders = false;
            this.txtFirstName.StylePriority.UsePadding = false;
            this.txtFirstName.StylePriority.UseTextAlignment = false;
            this.txtFirstName.Text = "[FirstName] [LastName]";
            this.txtFirstName.TextAlignment = TextAlignment.MiddleLeft;
            this.txtFirstName.Weight = 0.87405570965265467;
            this.dtBirthdayMale.Name = "dtBirthdayMale";
            this.dtBirthdayMale.StylePriority.UseTextAlignment = false;
            this.dtBirthdayMale.TextAlignment = TextAlignment.MiddleCenter;
            this.dtBirthdayMale.Weight = 0.21333338067305588;
            this.dtBirthdayMale.BeforePrint += new PrintEventHandler(this.dtBirthdayMale_BeforePrint);
            this.dtBirthdayFemale.Name = "dtBirthdayFemale";
            this.dtBirthdayFemale.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.dtBirthdayFemale.StylePriority.UsePadding = false;
            this.dtBirthdayFemale.StylePriority.UseTextAlignment = false;
            this.dtBirthdayFemale.TextAlignment = TextAlignment.MiddleLeft;
            this.dtBirthdayFemale.Weight = 0.21333338067305588;
            this.txtHCMCity.Name = "txtHCMCity";
            this.txtHCMCity.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtHCMCity.StylePriority.UsePadding = false;
            this.txtHCMCity.StylePriority.UseTextAlignment = false;
            this.txtHCMCity.TextAlignment = TextAlignment.MiddleCenter;
            this.txtHCMCity.Weight = 0.23805690119562933;
            this.txtHCMCity.BeforePrint += new PrintEventHandler(this.txtHCMCity_BeforePrint);
            this.txtOrtherCity.Name = "txtOrtherCity";
            this.txtOrtherCity.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtOrtherCity.StylePriority.UsePadding = false;
            this.txtOrtherCity.StylePriority.UseTextAlignment = false;
            this.txtOrtherCity.TextAlignment = TextAlignment.MiddleCenter;
            this.txtOrtherCity.Weight = 0.22666674815917065;
            this.txtBirthPlace.Name = "txtBirthPlace";
            this.txtBirthPlace.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtBirthPlace.StylePriority.UsePadding = false;
            this.txtBirthPlace.StylePriority.UseTextAlignment = false;
            this.txtBirthPlace.Text = "[Professional]";
            this.txtBirthPlace.TextAlignment = TextAlignment.MiddleLeft;
            this.txtBirthPlace.Weight = 0.69333358514761867;
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell3.StylePriority.UsePadding = false;
            this.xrTableCell3.StylePriority.UseTextAlignment = false;
            this.xrTableCell3.Text = "[Position]";
            this.xrTableCell3.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell3.Weight = 0.48047335632394617;
            this.txtEmployeeAddress.Name = "txtEmployeeAddress";
            this.txtEmployeeAddress.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtEmployeeAddress.StylePriority.UsePadding = false;
            this.txtEmployeeAddress.StylePriority.UseTextAlignment = false;
            this.txtEmployeeAddress.Text = "[BeginDate!dd/MM/yyyy]";
            this.txtEmployeeAddress.TextAlignment = TextAlignment.MiddleCenter;
            this.txtEmployeeAddress.Weight = 0.44158352958087793;
            this.txtReasonLeaveOrther.Name = "txtReasonLeaveOrther";
            this.txtReasonLeaveOrther.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtReasonLeaveOrther.StylePriority.UsePadding = false;
            this.txtReasonLeaveOrther.StylePriority.UseTextAlignment = false;
            this.txtReasonLeaveOrther.TextAlignment = TextAlignment.MiddleCenter;
            this.txtReasonLeaveOrther.Weight = 0.19200040308959887;
            this.dtEndDate.Name = "dtEndDate";
            this.dtEndDate.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.dtEndDate.StylePriority.UsePadding = false;
            this.dtEndDate.StylePriority.UseTextAlignment = false;
            this.dtEndDate.Text = "[Description]";
            this.dtEndDate.TextAlignment = TextAlignment.MiddleLeft;
            this.dtEndDate.Weight = 0.57232473974357212;
            this.TopMargin.HeightF = 70f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 56f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.dtDate, this.txtTitle, this.txtUnit, this.txtAddress, this.ptPhoto, this.txtCompany, this.xrLabel2 });
            this.ReportHeader.HeightF = 123f;
            this.ReportHeader.Name = "ReportHeader";
            this.dtDate.LocationFloat = new PointFloat(886.2707f, 10.00001f);
            this.dtDate.Name = "dtDate";
            this.dtDate.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.dtDate.SizeF = new SizeF(187.7291f, 17.99998f);
            this.dtDate.StylePriority.UseTextAlignment = false;
            this.dtDate.Text = "dtDate";
            this.dtDate.TextAlignment = TextAlignment.MiddleRight;
            this.txtTitle.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.txtTitle.LocationFloat = new PointFloat(3.178914E-05f, 68.75f);
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTitle.SizeF = new SizeF(1074f, 30.25001f);
            this.txtTitle.StylePriority.UseFont = false;
            this.txtTitle.StylePriority.UseTextAlignment = false;
            this.txtTitle.Text = "DANH S\x00c1CH LAO ĐỘNG GIẢM";
            this.txtTitle.TextAlignment = TextAlignment.MiddleCenter;
            this.txtUnit.LocationFloat = new PointFloat(3.178914E-05f, 99.00001f);
            this.txtUnit.Name = "txtUnit";
            this.txtUnit.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtUnit.SizeF = new SizeF(1074f, 17.70834f);
            this.txtUnit.StylePriority.UseTextAlignment = false;
            this.txtUnit.TextAlignment = TextAlignment.MiddleCenter;
            this.txtAddress.LocationFloat = new PointFloat(154.3333f, 31.70837f);
            this.txtAddress.Name = "txtAddress";
            this.txtAddress.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtAddress.SizeF = new SizeF(488.375f, 17.70824f);
            this.txtAddress.Text = "txtAddress";
            this.ptPhoto.LocationFloat = new PointFloat(9.00001f, 5f);
            this.ptPhoto.Name = "ptPhoto";
            this.ptPhoto.SizeF = new SizeF(88.54166f, 58.33333f);
            this.ptPhoto.Sizing = ImageSizeMode.ZoomImage;
            this.txtCompany.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(105.5417f, 10.00001f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(537.1666f, 17.70833f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.Text = "txtCompany";
            this.xrLabel2.LocationFloat = new PointFloat(105.5417f, 31.70827f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(48.79157f, 17.70833f);
            this.xrLabel2.Text = "Địa chỉ:";
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.xrTable1 });
            this.GroupHeader1.HeightF = 136.4584f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.xrTable1.AnchorVertical = VerticalAnchorStyles.Bottom;
            this.xrTable1.BackColor = Color.WhiteSmoke;
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1, this.xrTableRow3 });
            this.xrTable1.SizeF = new SizeF(1074f, 136.4584f);
            this.xrTable1.StylePriority.UseBackColor = false;
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.colOrder, this.colEmployeeCode, this.colLastName, this.colSex, this.colBirthPlace, this.xrTableCell2, this.colMainAddress, this.colPosition, this.colEndDate });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Weight = 1.0;
            this.colOrder.CanGrow = false;
            this.colOrder.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colOrder.Name = "colOrder";
            this.colOrder.StylePriority.UseFont = false;
            this.colOrder.StylePriority.UseTextAlignment = false;
            this.colOrder.Text = "STT";
            this.colOrder.TextAlignment = TextAlignment.MiddleCenter;
            this.colOrder.Weight = 0.18749992582046493;
            this.colEmployeeCode.CanGrow = false;
            this.colEmployeeCode.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.StylePriority.UseFont = false;
            this.colEmployeeCode.StylePriority.UseTextAlignment = false;
            this.colEmployeeCode.Text = "Họ v\x00e0 t\x00ean";
            this.colEmployeeCode.TextAlignment = TextAlignment.MiddleCenter;
            this.colEmployeeCode.Weight = 0.88472159958032526;
            this.colLastName.CanGrow = false;
            this.colLastName.Controls.AddRange(new XRControl[] { this.xrLabel1, this.xrLabel4, this.xrLabel3 });
            this.colLastName.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colLastName.Name = "colLastName";
            this.colLastName.StylePriority.UseFont = false;
            this.colLastName.StylePriority.UseTextAlignment = false;
            this.colLastName.Text = "T\x00ean";
            this.colLastName.TextAlignment = TextAlignment.MiddleCenter;
            this.colLastName.Weight = 0.43005614695273509;
            this.xrLabel1.Borders = BorderSide.None;
            this.xrLabel1.LocationFloat = new PointFloat(40.00002f, 39.66665f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(40f, 77.00002f);
            this.xrLabel1.StylePriority.UseBorders = false;
            this.xrLabel1.Text = "Nữ";
            this.xrLabel4.Borders = BorderSide.Right;
            this.xrLabel4.LocationFloat = new PointFloat(0f, 39.66665f);
            this.xrLabel4.Name = "xrLabel4";
            this.xrLabel4.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel4.SizeF = new SizeF(40.00002f, 76.99995f);
            this.xrLabel4.StylePriority.UseBorders = false;
            this.xrLabel4.Text = "Nam";
            this.xrLabel3.Borders = BorderSide.Bottom;
            this.xrLabel3.LocationFloat = new PointFloat(1.335144E-05f, 0f);
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel3.SizeF = new SizeF(80.63554f, 39.66665f);
            this.xrLabel3.StylePriority.UseBorders = false;
            this.xrLabel3.Text = "Năm sinh";
            this.colSex.CanGrow = false;
            this.colSex.Controls.AddRange(new XRControl[] { this.xrLabel7, this.xrLabel6, this.xrLabel5 });
            this.colSex.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colSex.Name = "colSex";
            this.colSex.StylePriority.UseFont = false;
            this.colSex.StylePriority.UseTextAlignment = false;
            this.colSex.Text = "Giới t\x00ednh";
            this.colSex.TextAlignment = TextAlignment.MiddleCenter;
            this.colSex.Weight = 0.46133339934492557;
            this.xrLabel7.Borders = BorderSide.None;
            this.xrLabel7.LocationFloat = new PointFloat(44.00002f, 39.66665f);
            this.xrLabel7.Name = "xrLabel7";
            this.xrLabel7.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel7.SizeF = new SizeF(42.5f, 77.00002f);
            this.xrLabel7.StylePriority.UseBorders = false;
            this.xrLabel7.Text = "Tỉnh Th\x00e0nh Phố kh\x00e1c";
            this.xrLabel6.Borders = BorderSide.Right;
            this.xrLabel6.LocationFloat = new PointFloat(1.335144E-05f, 39.66665f);
            this.xrLabel6.Name = "xrLabel6";
            this.xrLabel6.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel6.SizeF = new SizeF(44f, 77.00002f);
            this.xrLabel6.StylePriority.UseBorders = false;
            this.xrLabel6.Text = "TP.Hồ Ch\x00ed Minh";
            this.xrLabel5.Borders = BorderSide.Bottom;
            this.xrLabel5.LocationFloat = new PointFloat(4.577637E-05f, 0f);
            this.xrLabel5.Name = "xrLabel5";
            this.xrLabel5.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel5.SizeF = new SizeF(86.49997f, 39.66665f);
            this.xrLabel5.StylePriority.UseBorders = false;
            this.xrLabel5.Text = "Lao động c\x00f3 hộ khẩu";
            this.colBirthPlace.CanGrow = false;
            this.colBirthPlace.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colBirthPlace.Name = "colBirthPlace";
            this.colBirthPlace.StylePriority.UseFont = false;
            this.colBirthPlace.StylePriority.UseTextAlignment = false;
            this.colBirthPlace.Text = "Tr\x00ecnh độ đ\x00e0o tạo theo nghề hoặc chuy\x00ean m\x00f4n kỹ thuật";
            this.colBirthPlace.TextAlignment = TextAlignment.MiddleCenter;
            this.colBirthPlace.Weight = 0.69333321154028638;
            this.xrTableCell2.CanGrow = false;
            this.xrTableCell2.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.Padding = new PaddingInfo(4, 4, 0, 0, 100f);
            this.xrTableCell2.StylePriority.UseFont = false;
            this.xrTableCell2.StylePriority.UsePadding = false;
            this.xrTableCell2.StylePriority.UseTextAlignment = false;
            this.xrTableCell2.Text = "Vị tr\x00ed c\x00f4ng việc";
            this.xrTableCell2.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell2.Weight = 0.48047305522227057;
            this.colMainAddress.CanGrow = false;
            this.colMainAddress.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colMainAddress.Name = "colMainAddress";
            this.colMainAddress.StylePriority.UseFont = false;
            this.colMainAddress.StylePriority.UseTextAlignment = false;
            this.colMainAddress.Text = "Thời gian bắt đầu l\x00e0m việc tại đơn vị";
            this.colMainAddress.TextAlignment = TextAlignment.MiddleCenter;
            this.colMainAddress.Weight = 0.44158325143012439;
            this.colPosition.CanGrow = false;
            this.colPosition.Controls.AddRange(new XRControl[] { this.xrLabel20, this.xrLabel19, this.xrLabel18, this.xrLabel17, this.xrLabel11, this.xrLabel10, this.xrLabel9, this.xrLabel8 });
            this.colPosition.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colPosition.Name = "colPosition";
            this.colPosition.StylePriority.UseFont = false;
            this.colPosition.StylePriority.UseTextAlignment = false;
            this.colPosition.Text = "Chức vụ";
            this.colPosition.TextAlignment = TextAlignment.MiddleCenter;
            this.colPosition.Weight = 1.5766682728179338;
            this.xrLabel8.Borders = BorderSide.Bottom;
            this.xrLabel8.LocationFloat = new PointFloat(1.335144E-05f, 0f);
            this.xrLabel8.Name = "xrLabel8";
            this.xrLabel8.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel8.SizeF = new SizeF(295.6253f, 39.66665f);
            this.xrLabel8.StylePriority.UseBorders = false;
            this.xrLabel8.Text = "L\x00fd do giảm";
            this.colEndDate.CanGrow = false;
            this.colEndDate.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colEndDate.Name = "colEndDate";
            this.colEndDate.StylePriority.UseFont = false;
            this.colEndDate.StylePriority.UseTextAlignment = false;
            this.colEndDate.Text = "Ghi ch\x00fa";
            this.colEndDate.TextAlignment = TextAlignment.MiddleCenter;
            this.colEndDate.Weight = 0.57233004651027042;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.lblTotalEmpProvince, this.lblTotalEmployeeFemale, this.xrLabel16, this.lblTotalEmpProvinceFemale, this.lblTotalEmployee, this.xrLabel14, this.xrLabel15, this.xrLabel12, this.xrLabel13 });
            this.ReportFooter.HeightF = 130f;
            this.ReportFooter.Name = "ReportFooter";
            this.lblTotalEmpProvince.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.lblTotalEmpProvince.LocationFloat = new PointFloat(362.5f, 77.20831f);
            this.lblTotalEmpProvince.Name = "lblTotalEmpProvince";
            this.lblTotalEmpProvince.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.lblTotalEmpProvince.SizeF = new SizeF(345.0835f, 17.79169f);
            this.lblTotalEmpProvince.StylePriority.UseFont = false;
            this.lblTotalEmpProvince.Text = "+  Lao động c\x00f3 hộ khẩu tỉnh:";
            this.lblTotalEmployeeFemale.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.lblTotalEmployeeFemale.LocationFloat = new PointFloat(362.5f, 51.20831f);
            this.lblTotalEmployeeFemale.Name = "lblTotalEmployeeFemale";
            this.lblTotalEmployeeFemale.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.lblTotalEmployeeFemale.SizeF = new SizeF(345.0835f, 17.79169f);
            this.lblTotalEmployeeFemale.StylePriority.UseFont = false;
            this.lblTotalEmployeeFemale.Text = "     Trong đ\x00f3 nữ:";
            this.xrLabel16.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel16.LocationFloat = new PointFloat(787.4999f, 102.2083f);
            this.xrLabel16.Name = "xrLabel16";
            this.xrLabel16.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel16.SizeF = new SizeF(218.9114f, 17.79169f);
            this.xrLabel16.StylePriority.UseFont = false;
            this.xrLabel16.Text = "Ng\x00e0y .… th\x00e1ng ...... năm 20.....";
            this.lblTotalEmpProvinceFemale.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.lblTotalEmpProvinceFemale.LocationFloat = new PointFloat(362.5f, 102.2083f);
            this.lblTotalEmpProvinceFemale.Name = "lblTotalEmpProvinceFemale";
            this.lblTotalEmpProvinceFemale.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.lblTotalEmpProvinceFemale.SizeF = new SizeF(345.0835f, 17.79169f);
            this.lblTotalEmpProvinceFemale.StylePriority.UseFont = false;
            this.lblTotalEmpProvinceFemale.Text = "     Trong đ\x00f3 nữ:";
            this.lblTotalEmployee.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.lblTotalEmployee.LocationFloat = new PointFloat(362.5f, 25f);
            this.lblTotalEmployee.Name = "lblTotalEmployee";
            this.lblTotalEmployee.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.lblTotalEmployee.SizeF = new SizeF(345.0835f, 17.79169f);
            this.lblTotalEmployee.StylePriority.UseFont = false;
            this.lblTotalEmployee.Text = "+  Tổng số lao động hiện c\x00f3:";
            this.xrLabel14.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel14.LocationFloat = new PointFloat(0f, 77.20831f);
            this.xrLabel14.Name = "xrLabel14";
            this.xrLabel14.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel14.SizeF = new SizeF(323.1772f, 17.79162f);
            this.xrLabel14.StylePriority.UseFont = false;
            this.xrLabel14.Text = "- Trong đ\x00f3 nữ: ………………………………….người";
            this.xrLabel15.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel15.LocationFloat = new PointFloat(0f, 102.2083f);
            this.xrLabel15.Name = "xrLabel15";
            this.xrLabel15.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel15.SizeF = new SizeF(323.1772f, 17.79168f);
            this.xrLabel15.StylePriority.UseFont = false;
            this.xrLabel15.Text = "................ , ng\x00e0y .… th\x00e1ng ...... năm 20.....";
            this.xrLabel12.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel12.LocationFloat = new PointFloat(0f, 25f);
            this.xrLabel12.Name = "xrLabel12";
            this.xrLabel12.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel12.SizeF = new SizeF(198.5416f, 17.79165f);
            this.xrLabel12.StylePriority.UseFont = false;
            this.xrLabel12.Text = "Ph\x00f2ng LĐ.TBXH/Q5 x\x00e1c nhận:";
            this.xrLabel13.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel13.LocationFloat = new PointFloat(0f, 51.20831f);
            this.xrLabel13.Name = "xrLabel13";
            this.xrLabel13.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel13.SizeF = new SizeF(323.1772f, 17.79169f);
            this.xrLabel13.StylePriority.UseFont = false;
            this.xrLabel13.Text = "- Tổng số lao động đ\x00e3 khai tr\x00ecnh: …………….người";
            this.xrLabel9.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel9.LocationFloat = new PointFloat(1.335144E-05f, 39.66665f);
            this.xrLabel9.Name = "xrLabel9";
            this.xrLabel9.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel9.SizeF = new SizeF(36.52069f, 77.00005f);
            this.xrLabel9.StylePriority.UseBorders = false;
            this.xrLabel9.Text = "Nghỉ hưu";
            this.xrLabel10.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel10.LocationFloat = new PointFloat(36.5207f, 39.66656f);
            this.xrLabel10.Name = "xrLabel10";
            this.xrLabel10.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel10.SizeF = new SizeF(45f, 77f);
            this.xrLabel10.StylePriority.UseBorders = false;
            this.xrLabel10.Text = "Hết thời hạn HĐLĐ";
            this.xrLabel11.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel11.LocationFloat = new PointFloat(81.52071f, 39.66665f);
            this.xrLabel11.Name = "xrLabel11";
            this.xrLabel11.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel11.SizeF = new SizeF(55.43793f, 77.00005f);
            this.xrLabel11.StylePriority.UseBorders = false;
            this.xrLabel11.Text = "Th\x00f4i việc trước thời hạn";
            this.xrLabel17.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel17.LocationFloat = new PointFloat(136.9586f, 39.66656f);
            this.xrLabel17.Name = "xrLabel17";
            this.xrLabel17.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel17.SizeF = new SizeF(36f, 77.00005f);
            this.xrLabel17.StylePriority.UseBorders = false;
            this.xrLabel17.Text = "Mất việc l\x00e0m";
            this.xrLabel18.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel18.LocationFloat = new PointFloat(172.9586f, 39.66665f);
            this.xrLabel18.Name = "xrLabel18";
            this.xrLabel18.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel18.SizeF = new SizeF(35f, 77f);
            this.xrLabel18.StylePriority.UseBorders = false;
            this.xrLabel18.Text = "Tự \x00fd bỏ việc";
            this.xrLabel19.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel19.LocationFloat = new PointFloat(207.9586f, 39.66665f);
            this.xrLabel19.Name = "xrLabel19";
            this.xrLabel19.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel19.SizeF = new SizeF(51.66669f, 77.00005f);
            this.xrLabel19.StylePriority.UseBorders = false;
            this.xrLabel19.Text = "Sa thải do kỷ luật LĐ";
            this.xrLabel20.Borders = BorderSide.Bottom;
            this.xrLabel20.LocationFloat = new PointFloat(259.6253f, 39.66665f);
            this.xrLabel20.Name = "xrLabel20";
            this.xrLabel20.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel20.SizeF = new SizeF(36f, 77f);
            this.xrLabel20.StylePriority.UseBorders = false;
            this.xrLabel20.Text = "L\x00fd do kh\x00e1c";
            this.txtReasonLeaveLimit.Name = "txtReasonLeaveLimit";
            this.txtReasonLeaveLimit.StylePriority.UseTextAlignment = false;
            this.txtReasonLeaveLimit.TextAlignment = TextAlignment.MiddleCenter;
            this.txtReasonLeaveLimit.Weight = 0.23999977369983866;
            this.txtReasonLeaveRetire.Name = "txtReasonLeaveRetire";
            this.txtReasonLeaveRetire.StylePriority.UseTextAlignment = false;
            this.txtReasonLeaveRetire.TextAlignment = TextAlignment.MiddleCenter;
            this.txtReasonLeaveRetire.Weight = 0.19477742489426664;
            this.txtReasonLeaveRetire.BeforePrint += new PrintEventHandler(this.txtReasonLeave_BeforePrint);
            this.txtReasonLeaveJobLos.Name = "txtReasonLeaveJobLos";
            this.txtReasonLeaveJobLos.StylePriority.UseTextAlignment = false;
            this.txtReasonLeaveJobLos.TextAlignment = TextAlignment.MiddleCenter;
            this.txtReasonLeaveJobLos.Weight = 0.19200072943238333;
            this.txtReasonLeaveBefore.Name = "txtReasonLeaveBefore";
            this.txtReasonLeaveBefore.StylePriority.UseTextAlignment = false;
            this.txtReasonLeaveBefore.TextAlignment = TextAlignment.MiddleCenter;
            this.txtReasonLeaveBefore.Weight = 0.29566841409989053;
            this.txtReasonLeaveVolun.Name = "txtReasonLeaveVolun";
            this.txtReasonLeaveVolun.StylePriority.UseTextAlignment = false;
            this.txtReasonLeaveVolun.TextAlignment = TextAlignment.MiddleCenter;
            this.txtReasonLeaveVolun.Weight = 0.1866670684462306;
            this.txtReasonLeaveDiscip.Name = "txtReasonLeaveDiscip";
            this.txtReasonLeaveDiscip.StylePriority.UseTextAlignment = false;
            this.txtReasonLeaveDiscip.TextAlignment = TextAlignment.MiddleCenter;
            this.txtReasonLeaveDiscip.Weight = 0.27555544950929195;
            this.xrTableRow3.Cells.AddRange(new XRTableCell[] { this.xrTableCell1, this.xrTableCell4, this.xrTableCell5, this.xrTableCell6, this.xrTableCell7, this.xrTableCell8, this.xrTableCell9, this.xrTableCell10, this.xrTableCell11 });
            this.xrTableRow3.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.StylePriority.UseFont = false;
            this.xrTableRow3.StylePriority.UseTextAlignment = false;
            this.xrTableRow3.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow3.Weight = 0.16964304515287931;
            this.xrTableCell1.CanGrow = false;
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.Text = "1";
            this.xrTableCell1.Weight = 0.18749992582046493;
            this.xrTableCell4.CanGrow = false;
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.Text = "2";
            this.xrTableCell4.Weight = 0.88472159958032526;
            this.xrTableCell5.CanGrow = false;
            this.xrTableCell5.Controls.AddRange(new XRControl[] { this.xrLabel22, this.xrLabel21 });
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.Weight = 0.43005614695273509;
            this.xrTableCell6.CanGrow = false;
            this.xrTableCell6.Controls.AddRange(new XRControl[] { this.xrLabel24, this.xrLabel23 });
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.Weight = 0.46133339934492557;
            this.xrTableCell7.CanGrow = false;
            this.xrTableCell7.Name = "xrTableCell7";
            this.xrTableCell7.Text = "7";
            this.xrTableCell7.Weight = 0.69333321154028638;
            this.xrTableCell8.CanGrow = false;
            this.xrTableCell8.Name = "xrTableCell8";
            this.xrTableCell8.Text = "8";
            this.xrTableCell8.Weight = 0.48047305522227057;
            this.xrTableCell9.CanGrow = false;
            this.xrTableCell9.Name = "xrTableCell9";
            this.xrTableCell9.Text = "9";
            this.xrTableCell9.Weight = 0.44158325143012439;
            this.xrTableCell10.CanGrow = false;
            this.xrTableCell10.Controls.AddRange(new XRControl[] { this.xrLabel31, this.xrLabel30, this.xrLabel29, this.xrLabel28, this.xrLabel27, this.xrLabel26, this.xrLabel25 });
            this.xrTableCell10.Name = "xrTableCell10";
            this.xrTableCell10.Weight = 1.5766682728179338;
            this.xrTableCell11.CanGrow = false;
            this.xrTableCell11.Name = "xrTableCell11";
            this.xrTableCell11.Text = "17";
            this.xrTableCell11.Weight = 0.57233004651027042;
            this.xrLabel21.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel21.LocationFloat = new PointFloat(2.861023E-05f, 0f);
            this.xrLabel21.Name = "xrLabel21";
            this.xrLabel21.Padding = new PaddingInfo(2, 2, 0, 0, 96f);
            this.xrLabel21.SizeF = new SizeF(39.99998f, 19.79169f);
            this.xrLabel21.StylePriority.UseBorders = false;
            this.xrLabel21.Text = "3";
            this.xrLabel22.Borders = BorderSide.Bottom;
            this.xrLabel22.LocationFloat = new PointFloat(39.99995f, 0f);
            this.xrLabel22.Name = "xrLabel22";
            this.xrLabel22.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel22.SizeF = new SizeF(39.99998f, 19.79169f);
            this.xrLabel22.StylePriority.UseBorders = false;
            this.xrLabel22.Text = "4";
            this.xrLabel23.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel23.LocationFloat = new PointFloat(7.43866E-05f, 0f);
            this.xrLabel23.Name = "xrLabel23";
            this.xrLabel23.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel23.SizeF = new SizeF(43.99997f, 19.79169f);
            this.xrLabel23.StylePriority.UseBorders = false;
            this.xrLabel23.Text = "5";
            this.xrLabel24.Borders = BorderSide.Bottom;
            this.xrLabel24.LocationFloat = new PointFloat(44.00004f, 0f);
            this.xrLabel24.Name = "xrLabel24";
            this.xrLabel24.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel24.SizeF = new SizeF(42.5f, 19.79169f);
            this.xrLabel24.StylePriority.UseBorders = false;
            this.xrLabel24.Text = "6";
            this.xrLabel25.Borders = BorderSide.Bottom;
            this.xrLabel25.LocationFloat = new PointFloat(259.6254f, 0f);
            this.xrLabel25.Name = "xrLabel25";
            this.xrLabel25.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel25.SizeF = new SizeF(35.99994f, 19.79169f);
            this.xrLabel25.StylePriority.UseBorders = false;
            this.xrLabel25.Text = "16";
            this.xrLabel26.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel26.LocationFloat = new PointFloat(7.43866E-05f, 0f);
            this.xrLabel26.Name = "xrLabel26";
            this.xrLabel26.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel26.SizeF = new SizeF(36.52075f, 19.79169f);
            this.xrLabel26.StylePriority.UseBorders = false;
            this.xrLabel26.Text = "10";
            this.xrLabel27.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel27.LocationFloat = new PointFloat(36.52076f, 8.392334E-05f);
            this.xrLabel27.Name = "xrLabel27";
            this.xrLabel27.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel27.SizeF = new SizeF(45f, 19.7917f);
            this.xrLabel27.StylePriority.UseBorders = false;
            this.xrLabel27.Text = "11";
            this.xrLabel28.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel28.LocationFloat = new PointFloat(81.52077f, 0f);
            this.xrLabel28.Name = "xrLabel28";
            this.xrLabel28.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel28.SizeF = new SizeF(55.43774f, 19.79169f);
            this.xrLabel28.StylePriority.UseBorders = false;
            this.xrLabel28.Text = "12";
            this.xrLabel29.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel29.LocationFloat = new PointFloat(136.9585f, 0f);
            this.xrLabel29.Name = "xrLabel29";
            this.xrLabel29.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel29.SizeF = new SizeF(36.00012f, 19.79169f);
            this.xrLabel29.StylePriority.UseBorders = false;
            this.xrLabel29.Text = "13";
            this.xrLabel30.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel30.LocationFloat = new PointFloat(172.9586f, 0f);
            this.xrLabel30.Name = "xrLabel30";
            this.xrLabel30.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel30.SizeF = new SizeF(35.00012f, 19.79169f);
            this.xrLabel30.StylePriority.UseBorders = false;
            this.xrLabel30.Text = "14";
            this.xrLabel31.Borders = BorderSide.Bottom | BorderSide.Right;
            this.xrLabel31.LocationFloat = new PointFloat(207.9588f, 8.392334E-05f);
            this.xrLabel31.Name = "xrLabel31";
            this.xrLabel31.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel31.SizeF = new SizeF(51.66663f, 19.7917f);
            this.xrLabel31.StylePriority.UseBorders = false;
            this.xrLabel31.Text = "15";
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.GroupHeader1, this.ReportFooter });
            base.Landscape = true;
            base.Margins = new Margins(60, 0x23, 70, 0x38);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x491;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptListDecreaseEmployee_BeforePrint);
            this.xrTable2.EndInit();
            this.xrTable1.EndInit();
            this.EndInit();
        }

        private void InitMultiLanguages()
        {
            this.colOrder.Text = MultiLanguages.GetString("tbl_HRM_EMPLOYEE", "No", this.colOrder.Text);
            this.colEmployeeCode.Text = MultiLanguages.GetString("tbl_HRM_EMPLOYEE", "EmployeeCode", this.colEmployeeCode.Text);
            this.colLastName.Text = MultiLanguages.GetString("tbl_HRM_EMPLOYEE", "LastName", this.colLastName.Text);
            this.colSex.Text = MultiLanguages.GetString("tbl_HRM_EMPLOYEE", "Sex", this.colSex.Text);
            this.colBirthPlace.Text = MultiLanguages.GetString("tbl_HRM_EMPLOYEE", "Birthplace", this.colBirthPlace.Text);
            this.colMainAddress.Text = MultiLanguages.GetString("tbl_HRM_EMPLOYEE", "MainAddress", this.colMainAddress.Text);
            this.colPosition.Text = MultiLanguages.GetString("tbl_HRM_EMPLOYEE", "Position", this.colPosition.Text);
            this.colEndDate.Text = MultiLanguages.GetString("tbl_HRM_EMPLOYEE", "EndDate", this.colEndDate.Text);
        }

        private bool IsHCM(string m_Address)
        {
            bool flag = false;
            int num = 0;
            num = m_Address.LastIndexOf(",");
            if (num == 0)
            {
                return false;
            }
            string str = m_Address.Substring(num + 1, (m_Address.Length - num) - 1).ToLower().Replace(" ", "");
            str = this.Unsigned(str);
            return (((str.IndexOf("hcm") > 0) || (str.IndexOf("hochiminh") >= 0)) || flag);
        }

        private void LoadDecreaseList()
        {
            if (this.m_Status == 2)
            {
                this.txtTitle.Text = "DANH S\x00c1CH LAO ĐỘNG GIẢM TH\x00c1NG " + this.m_Month.ToString() + "/" + this.m_Year.ToString();
            }
            else if (this.m_Status == 3)
            {
                this.txtTitle.Text = "DANH S\x00c1CH LAO ĐỘNG GIẢM NĂM " + this.m_Year.ToString();
            }
            DataSet set = new DataSet();
            DataTable table = new DataTable();
            table = this.l_Employee.GetIncreaseDecreaseList(this.m_Level, this.m_Code, this.m_Status, this.m_Month, this.m_Year);
            set.Tables.Add(table);
            base.DataSource = set;
            base.DataMember = table.TableName;
            base.DataAdapter = table;
        }

        private void LoadLevel()
        {
            if (this.m_Level == 1)
            {
                HRM_BRANCH hrm_branch = new HRM_BRANCH();
                hrm_branch.Get(this.m_Code);
                this.txtUnit.Text = "Đơn vị: " + hrm_branch.BranchName;
            }
            else if (this.m_Level == 2)
            {
                HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                hrm_department.Get(this.m_Code);
                this.txtUnit.Text = "Đơn vị: " + hrm_department.DepartmentName;
            }
            else if (this.m_Level == 3)
            {
                HRM_GROUP hrm_group = new HRM_GROUP();
                hrm_group.Get(this.m_Code);
                this.txtUnit.Text = "Đơn vị: " + hrm_group.GroupName;
            }
        }

        private void rptListDecreaseEmployee_BeforePrint(object sender, PrintEventArgs e)
        {
            this.LoadLevel();
            this.LoadDecreaseList();
            this.dtDate.Text = DateTime.Now.ToShortDateString();
            ////if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompany.Text = "";// MyInfo.Company.ToUpper();
                this.txtAddress.Text = "";//MyInfo.Address;
                this.ptPhoto.Image = null;//MyInfo.Photo;
            }
            CreateFooterReport.CreateFooter("IsOther", this.ReportFooter, this);
        }

        private void txtHCMCity_BeforePrint(object sender, PrintEventArgs e)
        {
            try
            {
                string text = this.txtEmployeeCode.Text;
                HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
                hrm_employee.Get(text);
                string mainAddress = hrm_employee.MainAddress;
                if (this.IsHCM(mainAddress))
                {
                    this.txtHCMCity.Text = "x";
                    this.txtOrtherCity.Text = "";
                }
                else
                {
                    this.txtHCMCity.Text = "";
                    this.txtOrtherCity.Text = "x";
                }
            }
            catch
            {
            }
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }

        private void txtReasonLeave_BeforePrint(object sender, PrintEventArgs e)
        {
            try
            {
                string text = this.txtEmployeeCode.Text;
                HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
                hrm_employee.Get(text);
                string str2 = hrm_employee.ReasonLeave.ToLower().Replace("  ", " ");
                if (str2.IndexOf("nghỉ hưu") >= 0)
                {
                    this.txtReasonLeaveRetire.Text = "x";
                    this.txtReasonLeaveLimit.Text = "";
                    this.txtReasonLeaveBefore.Text = "";
                    this.txtReasonLeaveJobLos.Text = "";
                    this.txtReasonLeaveVolun.Text = "";
                    this.txtReasonLeaveDiscip.Text = "";
                    this.txtReasonLeaveOrther.Text = "";
                }
                else if (str2.IndexOf("hết thời hạn") >= 0)
                {
                    this.txtReasonLeaveRetire.Text = "";
                    this.txtReasonLeaveLimit.Text = "x";
                    this.txtReasonLeaveBefore.Text = "";
                    this.txtReasonLeaveJobLos.Text = "";
                    this.txtReasonLeaveVolun.Text = "";
                    this.txtReasonLeaveDiscip.Text = "";
                    this.txtReasonLeaveOrther.Text = "";
                }
                else if (str2.IndexOf("th\x00f4i việc") >= 0)
                {
                    this.txtReasonLeaveRetire.Text = "";
                    this.txtReasonLeaveLimit.Text = "";
                    this.txtReasonLeaveBefore.Text = "x";
                    this.txtReasonLeaveJobLos.Text = "";
                    this.txtReasonLeaveVolun.Text = "";
                    this.txtReasonLeaveDiscip.Text = "";
                    this.txtReasonLeaveOrther.Text = "";
                }
                else if (str2.IndexOf("mất việc l\x00e0m") >= 0)
                {
                    this.txtReasonLeaveRetire.Text = "";
                    this.txtReasonLeaveLimit.Text = "";
                    this.txtReasonLeaveBefore.Text = "";
                    this.txtReasonLeaveJobLos.Text = "x";
                    this.txtReasonLeaveVolun.Text = "";
                    this.txtReasonLeaveDiscip.Text = "";
                    this.txtReasonLeaveOrther.Text = "";
                }
                else if (str2.IndexOf("bỏ việc") >= 0)
                {
                    this.txtReasonLeaveRetire.Text = "";
                    this.txtReasonLeaveLimit.Text = "";
                    this.txtReasonLeaveBefore.Text = "";
                    this.txtReasonLeaveJobLos.Text = "";
                    this.txtReasonLeaveVolun.Text = "x";
                    this.txtReasonLeaveDiscip.Text = "";
                    this.txtReasonLeaveOrther.Text = "";
                }
                else if (str2.IndexOf("kỷ luật") >= 0)
                {
                    this.txtReasonLeaveRetire.Text = "";
                    this.txtReasonLeaveLimit.Text = "";
                    this.txtReasonLeaveBefore.Text = "";
                    this.txtReasonLeaveJobLos.Text = "";
                    this.txtReasonLeaveVolun.Text = "";
                    this.txtReasonLeaveDiscip.Text = "x";
                    this.txtReasonLeaveOrther.Text = "";
                }
                else
                {
                    this.txtReasonLeaveRetire.Text = "";
                    this.txtReasonLeaveLimit.Text = "";
                    this.txtReasonLeaveBefore.Text = "";
                    this.txtReasonLeaveJobLos.Text = "";
                    this.txtReasonLeaveVolun.Text = "";
                    this.txtReasonLeaveDiscip.Text = "";
                    this.txtReasonLeaveOrther.Text = "x";
                }
            }
            catch
            {
            }
        }

        private string Unsigned(string m_Address)
        {
            return m_Address.ToLower().Replace("ồ", "o").Replace("\x00f4", "o").Replace("\x00f2", "o").Replace("oo", "o").Replace("o5", "o").Replace("\x00ed", "i");
        }
    }
}

